package com.docmanage.am.mapper;

import java.util.List;
import com.docmanage.am.domain.AmApproval;

/**
 * 审批Mapper接口
 * 
 * @author docmanage
 * @date 2023-12-03
 */
public interface AmApprovalMapper 
{
    /**
     * 查询审批
     * 
     * @param id 审批主键
     * @return 审批
     */
    public AmApproval selectAmApprovalById(Long id);

    /**
     * 查询审批列表
     * 
     * @param amApproval 审批
     * @return 审批集合
     */
    public List<AmApproval> selectAmApprovalList(AmApproval amApproval);

    /**
     * 新增审批
     * 
     * @param amApproval 审批
     * @return 结果
     */
    public int insertAmApproval(AmApproval amApproval);

    /**
     * 修改审批
     * 
     * @param amApproval 审批
     * @return 结果
     */
    public int updateAmApproval(AmApproval amApproval);

    /**
     * 删除审批
     * 
     * @param id 审批主键
     * @return 结果
     */
    public int deleteAmApprovalById(Long id);

    /**
     * 批量删除审批
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAmApprovalByIds(Long[] ids);

    /**
     * 通过档案业务id获取审批数据
     * @param objId 实例id
     * @return
     */
    List<AmApproval> getAmApprovalByBorrowId(Long objId);

    /**
     * 通过objId 删除审批内容
     * @param id
     * @return
     */
    int deleteApprovalByObjId(Long id);
}
